/*
 * Kelas airport merupakan turunan dari kelas kotak, berisi konstruktor
 * 
 */

package model.board;

import java.io.Serializable;

public class Airport extends Kotak implements Serializable
{
    public Airport()
    {
        super();
    }

    public Airport (int _posisi)
    {
        super();
        switch (_posisi)
        {
            case 5:
                nama = new String ("Soekarno_Hatta");
                hargabeli = 5000;
                hargasewa = 1500;
                break;

            case 13:
                nama = new String ("Adi_Sucipto");
                hargabeli = 10000;
                hargasewa = 2500;
                break;
            case 21:
                nama = new String ("Ahmad_Yani");
                hargabeli = 15000;
                hargasewa = 3500; break;
            case 29:
                nama = new String ("Ngurah_Rai");
                hargabeli = 20000;
                hargasewa = 4500; break;
        }
    }

    public static void main (String[]args)
    {
        Airport a1 = new Airport(5);
        Airport a2 = new Airport(13);
        Airport a3 = new Airport(21);
        Airport a4 = new Airport(29);

        System.out.println(a1.getNama());
        System.out.println(a2.getNama());
        System.out.println(a3.getNama());
        System.out.println(a4.getNama());
    }
}
